#ifndef LocationAPI_H
#define LocationAPI_H

#include <QtCore>
#include "hybridplugininterface.h"

class Location;
class QWebFrame;

class LocationAPI : public QObject,
               public HybridPluginInterface {
    Q_OBJECT
    Q_INTERFACES(HybridPluginInterface)

public:
    LocationAPI();

    void setEnvironment(QMainWindow *parentWindow, QWebFrame *webFrame);

    QString jsObjectName();
    QObject *jsObjectInstance();
    QString jsFileName();

private:
    Location *m_location;
};

#endif // LocationAPI_H

